package sceneGraph;

import javax.vecmath.*;

public class Portal extends AbstractPlanetObject implements ISceneObject, IIntersectable {

	private AbstractPlanet destination;

	public Portal(Point3f pos, float radius, AbstractPlanet destination, Color3f kDiffuse, Color3f kSpecular, Color3f kAmbient, float nShineness) {
		super(pos, radius, "/images/other/textures/portal.jpg", kDiffuse, kSpecular, kAmbient, nShineness);
		this.destination = destination;
	}

	@Override
	public void accept(Visitor visitor) {
		visitor.visit(this);

	}

	public AbstractPlanet getDestination() {
		return destination;
	}
}
